<template>
	<view>
		<image :src="picurl" mode=""></image>
	</view>
	
	<button type="primary" :loading="false" :disabled="false"> 按钮 </button>
</template>

<script setup>
import { ref } from 'vue';	

const arrs = ref([
	"../../static/c2.jpg",
	"../../static/c1.jpg",
	"../../static/c3.jpg"
	]);
const picurl =ref("../../static/c2.jpg");

let i = 0;

let intervalID = setInterval(()=>{
	i++;
	console.log(i);
	picurl.value = arrs.value[i%3]
	if (i == 5) {
		clearInterval(intervalID);
	}
},1000)

</script>

<style lang="scss">

</style>
